/*
 *    This program is free software; you can redistribute it and/or modify
 *    it under the terms of the GNU General Public License as published by
 *    the Free Software Foundation; either version 2 of the License, or
 *    (at your option) any later version.
 *
 *    This program is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *    GNU General Public License for more details.
 *
 *    You should have received a copy of the GNU General Public License
 *    along with this program; if not, write to the Free Software
 *    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

/**
 * Matrix.java
 * Copyright (C) 2008-2009 Miguel Garcia Torres
 */

package com.jscilib.math.linalg.matrix;

/**
 *
 * @author Miguel Garcia Torres (mgarciat@upo.es)
 */
public interface Matrix {
    int getRowDimension();
    int getColumnDimension();
    void set(int row, int columns, double element);
    double get(int row, int column);
    Matrix get(int row1, int row2, int column1, int columns2);
    Matrix get(int[] rows, int[] columns);
    Matrix get(int row1, int row2, int[] columns);
    Matrix get(int[] rows, int column1, int column2);
    Matrix times(double value);
    Matrix times(double[][] array);
    Matrix times(Matrix matrix);
    int rank();
    double determinant();
    double trace();
    Matrix transpose();
    double norm1();
    Matrix unaryMinus();
    Matrix plus(double[][] array);
    Matrix plus(Matrix matrix);
    Matrix minus(double[][] array);
    Matrix minus(Matrix matrix);
    Matrix arrayTimes(double[][] array);
    Matrix arrayTimes(Matrix matrix);
    Matrix inverse();
}
